package com.example.demo.domain.model;

import lombok.Data;

import java.util.Objects;

/**
 * @author liguang03
 * @date 2024/2/1
 */
@Data
public class Question {

    /**
     * 问题id
     */
    private Long problemId;

    /**
     * 占比分数
     */
    private Integer score;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        Question question = (Question) o;
        return Objects.equals(problemId, question.problemId);
    }

    @Override
    public int hashCode() {
        return Objects.hash(problemId);
    }
}
